package com.mauth.web.service;

import com.mauth.common.dto.auth.ClientParameter;
import com.mauth.common.dto.auth.Token;

import javax.servlet.http.HttpSession;

public interface AuthService {
    boolean isLogin(ClientParameter parameter, HttpSession session);

    ClientParameter getOauth2Parameter(HttpSession session);

    boolean validAuth(String code, String authorization);

    Token generateToken(ClientParameter parameter, String authorization);

    String generateCode(HttpSession session);
}
